package com.gitee.designpattern.singleton.satiety2;

/**
 * @author ming.yan-1
 * @version V1.0
 * @Title com.gitee.designpattern.singleton.satiety2
 * @Description 饿汉模式变种
 * @date 2018/8/30  下午5:52
 */
public class Singleton {
    private static Singleton singleton;
    static {
        singleton = new Singleton();
    }
    private Singleton(){
    }
    public static Singleton getInstance(){
        return singleton;
    }
}
